<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link media="screen" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/reset.css" rel="stylesheet"/>
        <link media="screen" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/style.css" rel="stylesheet"/>
        <link media="screen" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/invalid.css" rel="stylesheet"/>

        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/simpla.jquery.configuration.js" type="text/javascript"/>
        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/facebox.js" type="text/javascript"/>
        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/jquery.wysiwyg.js" type="text/javascript"/>
        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/jquery.datePicker.js" type="text/javascript"/>
        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/jquery.date.js" type="text/javascript"/>
        <script src="#{facesContext.externalContext.requestContextPath}/resources/scripts/clearInput.js" type="text/javascript"/>
        <title>Blue Pumpkin</title>
    </h:head>

    <h:body>

        <div id="body-wrapper">
            <div id="sidebar">
                <div id="sidebar-wrapper">
                    <h1 id="sidebar-title">
                        <a href="#">Blue Pumpkin Admin</a>
                    </h1>
                    <a href="#">
                        <img id="logo" alt="BluePumpkin Admin logo" src="#{facesContext.externalContext.requestContextPath}/resources/images/logo.png"/>
                    </a>
                    <div id="profile-links">
                        <h:form>
                            <h:outputLabel value="Welcome #{userControl.user.fullName}"></h:outputLabel>
                        </h:form>
                        <h:form>
                            <a href="#{facesContext.externalContext.requestContextPath}/faces/Admin/ChangePassword.xhtml">Change Your Password</a>
                        </h:form>
                        <h:form>
                            <h:commandLink value="Edit Your Profile||" actionListener="#{userControl.showDetail(userControl.user)}"></h:commandLink>
                        </h:form>
                        <h:form>
                            <h:commandLink value="Sign Out" actionListener="#{userControl.logout()}"></h:commandLink>
                        </h:form>
                    </div>
                    <ul id="main-nav">
                       
                        <li>
                            <a class="nav-top-item " href="#" style="padding-right: 15px;"> User Manager</a>
                            <ul style="display: block;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/CreateUser.xhtml">Create New User</a>
                                </li>
                                <li>
                                <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/SetAdmin.xhtml">Set Admin</a>
                                </li>
                                
                                <li>
                                <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/UserManager.xhtml">Manage User</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> Event Manager </a>
                            <ul style="display: none;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/EventInsert.xhtml">Create a new Event</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/EventUpdate.xhtml">Update Event</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/EventManager.xhtml">Event Manager</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> Prize Manager </a>
                            <ul style="display: none;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/PrizeInsert.xhtml">Create a new Prize</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/PrizeUpdate.xhtml">Update Prize</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/PrizeManager.xhtml">Prize Manager</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> Registration </a>
                            <ul style="display: none;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/RegUpdate.xhtml">Update Registration</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/RegManager.xhtml">Manage Registration</a>
                                </li>
                                
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> Winner</a>
                            <ul style="display: none;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/WinnerInsert.xhtml">Create a new Winner</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/WinnerUpdate.xhtml">Update Winner</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/WinnerManager.xhtml">Winner Manager</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> FAQs </a>
                            <ul style="display: none;">
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/FaqInsert.xhtml">Create a new FAQs</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/FaqUpdate.xhtml">Faq Update</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/FaqManager.xhtml">Manage Faqs</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#" style="padding-right: 15px;"> Contact </a>
                            <ul style="display: none;">
                                
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/ContactUpdate.xhtml">Faq Update</a>
                                </li>
                                <li>
                                    <a class="current" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/ContactManager.xhtml">Manage Faqs</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="nav-top-item" href="#{facesContext.externalContext.requestContextPath}/faces/Admin/Home.xhtml" style="padding-right: 15px;"> Home </a>
                        </li>
                    </ul>
                </div>
                
            </div>
            <div id="main-content">
                <noscript> &lt;!-- Show a notification if the user has disabled javascript --&gt; &lt;div class="notification error png_bg"&gt; &lt;div&gt; Javascript is disabled or is not supported by your browser. Please &lt;a href="http://browsehappy.com/" title="Upgrade to a better browser"&gt;upgrade&lt;/a&gt; your browser or &lt;a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser"&gt;enable&lt;/a&gt; Javascript to navigate the interface properly. &lt;/div&gt; &lt;/div&gt; </noscript>
                <h2>Welcome: #{sessionScope.user}</h2>
                <p id="page-intro">What would you like to do?</p>
            
            <ul class="shortcut-buttons-set">
                <li>
                <a class="shortcut-button" href="#">
                <span>
                <img alt="icon" src="#{facesContext.externalContext.requestContextPath}/resources/images/icons/pencil_48.png"/>
                    <a  href="#{facesContext.externalContext.requestContextPath}/faces/Admin/ContactUpdate.xhtml">New User</a>
                </span>
                </a>
                </li>
                
                <li>
                <a class="shortcut-button" href="#">
                <span>
                <img alt="icon" src="#{facesContext.externalContext.requestContextPath}/resources/images/icons/paper_content_pencil_48.png"/>
                    <br> New Event</br>
                </span>
                </a>
                </li>
                <li>
                <a class="shortcut-button" href="#">
                <span>
                <img alt="icon" src="#{facesContext.externalContext.requestContextPath}/resources/images/icons/image_add_48.png"/>
                    <br>Report</br>
                </span>
                </a>
                </li>
                
            </ul>
            <div class="clear"></div>
            <div class="content-box">
                <div class="content-box-header">
                    
                        <h3 style="cursor: s-resize;">Content box</h3>
                    <div class="clear"></div>
                    
                </div>
                <div class="content-box-content">
                    <ui:insert name="content">gggggggggggg</ui:insert>
                </div>
            </div>
            <div id="footer">
            <small>
                        &copy; Copyright 2009 Your Company | Powered by
            <a href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla Admin</a>

<a href="#">Top</a>
</small>
            </div>
        </div>
    </div>

    </h:body>

</html>
